package com.linxiangyuormdroid.example;

import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import com.roscopeco.ormdroid.Entity;
import com.roscopeco.ormdroid.ORMDroidApplication;
import org.linxiangyu.juanorm.JuanORM;

import java.io.File;

public class MyActivity extends Activity {
    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        JuanORM.INSTANCE.initDBwithManifest(this);
        SQLiteDatabase db = JuanORM.INSTANCE.getDatabase();

        JuanORM.INSTANCE.executeScript(db, "hello.sql");
    }
}
